import { Controller, Post, Body } from '@nestjs/common';
import { AlgorithmService } from './algorithm.service';
import { RunAlgorithmDto } from './dto/run-algorithm.dto';
import { ApiTags } from '@nestjs/swagger';

@Controller('algorithm')
@ApiTags('algorithm')
export class AlgorithmController {
  constructor(private readonly algorithmService: AlgorithmService) {}

  @Post('/run')
  run(@Body() runAlgorithmDto: RunAlgorithmDto) {
    return this.algorithmService.run(runAlgorithmDto);
  }
}
